package edu.neumont.MillerK.Web.Servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class FeaturesServlet
 */
@WebServlet("/Features")
public class FeaturesServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
    
	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		char[] featureArray = new char[6];
		featureArray[0] = '1';
		featureArray[1] = '1';
		featureArray[2] = '1';
		featureArray[3] = '1';
		featureArray[4] = '1';
		featureArray[5] = '1';
		request.setAttribute("featureArray", featureArray);
		request.getRequestDispatcher("/WEB-INF/views/Features.jsp").forward(request, response);
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

}
